﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace VentaElectrodomesticos.GUI.Validaciones
{
    public partial class InformeErrores : Form
    {
        List<string> Errores { get; set; }

        public InformeErrores(List<string> errores)
        {
            InitializeComponent();
            this.Errores = errores;
        }

        private void bOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void InformeErrores_Load(object sender, EventArgs e)
        {
            this.cargarErrores();
        }

        private void cargarErrores()
        {
            RTHelper rt = new RTHelper(this.rtErrores);
            foreach (string error in this.Errores)
                rt.writeError(error);
        }
    }
}
